/*
 * @Author: Yeong Lee
 * @Date: 2021-02-15 19:30:21
 * @Last Modified by: Yeong Lee
 * @Last Modified time: 2021-02-28 06:11:59
 */

import React from 'react';
import {Link} from 'react-router-dom';
import css from './index.less';

const IndexTitle = ({ title, titleEn, more }:{title:string, titleEn?:string, more?:string}) =>{
  return (
    <div className={css.titleContainer}>
      <div className={css.title}>
        {title}
        {more ? <Link className={css.more} to={more}>查看更多...</Link> : ''}    
        {titleEn ? <div className={css.titleEn}>{titleEn}</div> : ''}    
      </div>
    </div>
  );
}

export default IndexTitle;